package net.maxwoods.nimble.spring.security;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

import javax.servlet.http.HttpServletRequest;

public class CustomWebAuthenticationDetails extends WebAuthenticationDetails {

    private static final long serialVersionUID = -2710349966874667321L;

    private final String code;

    public String getCode() {
        return code;
    }

    public CustomWebAuthenticationDetails(HttpServletRequest request) {
        super(request);
        code = request.getParameter("code");
    }
}